home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / What's New? / Development Kits / Display Manager SDK v1.1 / Compiler & Runtime Files / • New universal header files • / AIncludes / Displays.a next >
Encoding:
Text File  |  1996-03-05  |  26.4 KB  |  1,042 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Displays.a
  3. ;
  4. ;    Contains:    Display Manager Interfaces.
  5. ;
  6. ;     Version:    Technology:    System 7.5
  7. ;                 Package:    Universal Interfaces in “Display Manager Development Kit” (post ETO #18)
  8. ;                Date:        3/5/96 
  9. ;
  10. ;     Copyright:    © 1984-1995 by Apple Computer, Inc.
  11. ;                 All rights reserved.
  12. ;     Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                 stack.  Include the file and version information (from above)
  14. ;                 in the problem description and send to:
  15. ;                     Internet:    apple.bugs@applelink.apple.com
  16. ;                     AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  21. __DISPLAYS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.  
  28.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  29.     include 'Components.a'
  30.     ENDIF
  31. ;        include 'Types.a'                                            ;
  32. ;        include 'MixedMode.a'                                        ;
  33.  
  34.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  35.     include 'Video.a'
  36.     ENDIF
  37. ;        include 'Quickdraw.a'                                        ;
  38. ;            include 'QuickdrawText.a'                                ;
  39.     IF 0 THEN
  40.  
  41.  
  42.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  43.     include 'AppleEvents.a'
  44.     ENDIF
  45. ;        include 'Errors.a'                                            ;
  46. ;        include 'Memory.a'                                            ;
  47. ;        include 'OSUtils.a'                                        ;
  48. ;        include 'Events.a'                                            ;
  49. ;        include 'EPPC.a'                                            ;
  50. ;            include 'AppleTalk.a'                                    ;
  51. ;            include 'Files.a'                                        ;
  52. ;                include 'Finder.a'                                    ;
  53. ;            include 'PPCToolbox.a'                                    ;
  54. ;            include 'Processes.a'                                    ;
  55. ;        include 'Notification.a'                                    ;
  56.  
  57.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  58.     include 'Windows.a'
  59.     ENDIF
  60. ;        include 'Controls.a'                                        ;
  61. ;            include 'Menus.a'                                        ;
  62.  
  63.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  64.     include 'Events.a'
  65.     ENDIF
  66.  
  67.     IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
  68.     include 'Processes.a'
  69.     ENDIF
  70.  
  71.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  72.     include 'Dialogs.a'
  73.     ENDIF
  74. ;        include 'TextEdit.a'                                        ;
  75.     ENDIF
  76.  
  77.  
  78. ; AppleEvents Core Suite 
  79. kAESystemConfigNotice            EQU        'cnfg'
  80. ; Core Suite types 
  81. kAEDisplayNotice                EQU        'dspl'
  82. kAEDisplaySummary                EQU        'dsum'
  83. keyDMConfigVersion                EQU        'dmcv'
  84. keyDMConfigFlags                EQU        'dmcf'
  85. keyDMConfigReserved                EQU        'dmcr'
  86. keyDisplayID                    EQU        'dmid'
  87. keyDisplayComponent                EQU        'dmdc'
  88. keyDisplayDevice                EQU        'dmdd'
  89. keyDisplayFlags                    EQU        'dmdf'
  90. keyDisplayMode                    EQU        'dmdm'
  91. keyDisplayModeReserved            EQU        'dmmr'
  92. keyDisplayReserved                EQU        'dmdr'
  93. keyDisplayMirroredId            EQU        'dmmi'
  94. keyDeviceFlags                    EQU        'dddf'
  95. keyDeviceDepthMode                EQU        'dddm'
  96. keyDeviceRect                    EQU        'dddr'
  97. keyPixMapRect                    EQU        'dpdr'
  98. keyPixMapHResolution            EQU        'dphr'
  99. keyPixMapVResolution            EQU        'dpvr'
  100. keyPixMapPixelType                EQU        'dppt'
  101. keyPixMapPixelSize                EQU        'dpps'
  102. keyPixMapCmpCount                EQU        'dpcc'
  103. keyPixMapCmpSize                EQU        'dpcs'
  104. keyPixMapAlignment                EQU        'dppa'
  105. keyPixMapResReserved            EQU        'dprr'
  106. keyPixMapReserved                EQU        'dppr'
  107. keyPixMapColorTableSeed            EQU        'dpct'
  108. keySummaryMenubar                EQU        'dsmb'
  109. keySummaryChanges                EQU        'dsch'
  110. keyDisplayOldConfig                EQU        'dold'
  111. keyDisplayNewConfig                EQU        'dnew'
  112.  
  113. dmOnlyActiveDisplays            EQU        true
  114. dmAllDisplays                    EQU        false
  115.  
  116. ; Switch Flags 
  117. kNoSwitchConfirmBit                EQU        0                    ; Flag indicating that there is no need to confirm a switch to this mode 
  118. kDepthNotAvailableBit            EQU        1                    ; Current depth not available in new mode 
  119. kShowModeBit                    EQU        3                    ; Show this mode even though it requires a confirm. 
  120. kModeNotResizeBit                EQU        4                    ; Do not use this mode to resize display (for cards that mode drives a different connector). 
  121. kNeverShowModeBit                EQU        5                    ; This mode should not be shown in the user interface. 
  122.  
  123. ;    Summary Change Flags (sticky bits indicating an operation was performed)
  124. ;    For example, moving a display then moving it back will still set the kMovedDisplayBit.
  125. ;
  126. kBeginEndConfigureBit            EQU        0
  127. kMovedDisplayBit                EQU        1
  128. kSetMainDisplayBit                EQU        2
  129. kSetDisplayModeBit                EQU        3
  130. kAddDisplayBit                    EQU        4
  131. kRemoveDisplayBit                EQU        5
  132. kNewDisplayBit                    EQU        6
  133. kDisposeDisplayBit                EQU        7
  134. kEnabledDisplayBit                EQU        8
  135. kDisabledDisplayBit                EQU        9
  136. kMirrorDisplayBit                EQU        10
  137. kUnMirrorDisplayBit                EQU        11
  138.  
  139. ; Notification Messages for extended call back routines 
  140. kDMNotifyInstalled                EQU        1                    ; At install time 
  141. kDMNotifyEvent                    EQU        2                    ; Post change time 
  142. kDMNotifyRemoved                EQU        3                    ; At remove time 
  143. kDMNotifyPrep                    EQU        4                    ; Pre change time 
  144. kDMNotifyExtendEvent            EQU        5                    ; Allow registrees to extend apple event before it is sent 
  145. kDMNotifyDependents                EQU        6                    ; Minor notification check without full update 
  146. kDMNotifySuspendConfigure        EQU        7                    ; Temporary end of configuration 
  147. kDMNotifyResumeConfigure        EQU        8                    ; Resume configuration 
  148. ; Notification Flags 
  149. kExtendedNotificationProc        EQU        (1 << 16)
  150.  
  151. ; types for notifyType 
  152. kFullNotify                        EQU        0                    ; This is the appleevent whole nine yards notify 
  153. kFullDependencyNotify            EQU        1                    ; Only sends to those who want to know about interrelated functionality (used for updating UI) 
  154.  
  155. ; DisplayID/DeviceID constants 
  156. kDummyDeviceID                    EQU        $0FF                ; This is the ID of the dummy display, used when the last “real” display is disabled.
  157. kInvalidDisplayID                EQU        $000                ; This is the invalid ID
  158. kFirstDisplayID                    EQU        $100
  159.  
  160. ; bits for panelListFlags 
  161. kAllowDuplicatesBit                EQU        0
  162.  
  163. ; bits for nameFlags 
  164. kSuppressNumberBit                EQU        0
  165. kSuppressNumberMask                EQU        1
  166. kForceNumberBit                    EQU        1
  167. kForceNumberMask                EQU        2
  168. kSuppressNameBit                EQU        2
  169. kSuppressNameMask                EQU        4
  170.  
  171. ; Constants for fidelity checks 
  172. kNoFidelity                        EQU        0
  173. kMinimumFidelity                EQU        1
  174. kDefaultFidelity                EQU        500                    ; I'm just picking a number for Apple default panels and engines
  175. kDefaultManufacturerFidelity    EQU        1000                ; I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults)
  176.  
  177. kAnyPanelType                    EQU        0                    ; Pass to DMNewEngineList for list of all panels (as opposed to specific types)
  178. kAnyEngineType                    EQU        0                    ; Pass to DMNewEngineList for list of all engines
  179. kAnyDeviceType                    EQU        0                    ; Pass to DMNewDeviceList for list of all devices
  180. kAnyPortType                    EQU        0                    ; Pass to DMNewDevicePortList for list of all devices
  181.  
  182. ; portListFlags for DM_NewDevicePortList 
  183. ; Should offline devices be put into the port list (such as dummy display) 
  184. kPLIncludeOfflineDevicesBit        EQU        0
  185.  
  186. ; typedef unsigned long     DMFidelityType
  187. ; AVID is an ID for ports and devices the old DisplayID type
  188. ;    is carried on for compatibility
  189. ;
  190. ; typedef unsigned long     AVIDType
  191. ; typedef AVIDType             DisplayIDType
  192. ; typedef void                 *DMListType
  193. ; typedef unsigned long     DMListIndexType
  194. ; typedef VDPowerStateRec     AVPowerStateRec
  195. ; typedef VDPowerStateRec     *AVPowerStatePtr
  196. DMComponentListEntryRec RECORD    0
  197. itemID                     ds.l   1        ; offset: $0 (0)        ; DisplayID Manager
  198. itemComponent             ds.l   1        ; offset: $4 (4)        ; Component Manager
  199. itemDescription             ds     ComponentDescription ; offset: $8 (8) ; We can always construct this if we use something beyond the compontent mgr.
  200. itemClass                 ds.l   1        ; offset: $1C (28)        ; Class of group to put this panel (eg geometry/color/etc for panels, brightness/contrast for engines, video out/sound/etc for devices)
  201. itemFidelity             ds.l   1        ; offset: $20 (32)        ; How good is this item for the specified search?
  202. itemSubClass             ds.l   1        ; offset: $24 (36)        ; Subclass of group to put this panel.  Can use to do sub-grouping (eg volume for volume panel and mute panel)
  203. itemSort                 ds     Point    ; offset: $28 (40)        ; Set to 0 - future to sort the items in a sub group.
  204. itemFlags                 ds.l   1        ; offset: $2C (44)        ; Set to 0 (future expansion)
  205. itemReserved             ds.l   1        ; offset: $30 (48)        ; What kind of code does the itemReference point to  (right now - kPanelEntryTypeComponentMgr only)
  206. itemFuture1                 ds.l   1        ; offset: $34 (52)        ; Set to 0 (future expansion - probably an alternate code style)
  207. itemFuture2                 ds.l   1        ; offset: $38 (56)        ; Set to 0 (future expansion - probably an alternate code style)
  208. itemFuture3                 ds.l   1        ; offset: $3C (60)        ; Set to 0 (future expansion - probably an alternate code style)
  209. itemFuture4                 ds.l   1        ; offset: $40 (64)        ; Set to 0 (future expansion - probably an alternate code style)
  210. sizeof                     EQU *            ; size:   $44 (68)
  211.                         ENDR
  212.  
  213. ; typedef struct DMComponentListEntryRec  DMComponentListEntryRec
  214. ; typedef DMComponentListEntryRec  *DMComponentListEntryPtr
  215. ; ••• Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created
  216. AVLocationRec             RECORD    0
  217. locationConstant         ds.l   1        ; offset: $0 (0)        ; Set to 0 (future expansion - probably an alternate code style)
  218. sizeof                     EQU *            ; size:   $4 (4)
  219.                         ENDR
  220.  
  221. ; typedef struct AVLocationRec  AVLocationRec
  222. ; typedef AVLocationRec     *AVLocationPtr
  223. DMDepthInfoRec             RECORD    0
  224. depthSwitchInfo             ds.l   1        ; offset: $0 (0)        ; This is the switch mode to choose this timing/depth 
  225. depthVPBlock             ds.l   1        ; offset: $4 (4)        ; VPBlock (including size, depth and format) 
  226. depthFlags                 ds.l   1        ; offset: $8 (8)        ; Reserved 
  227. depthReserved1             ds.l   1        ; offset: $C (12)        ; Reserved 
  228. depthReserved2             ds.l   1        ; offset: $10 (16)        ; Reserved 
  229. sizeof                     EQU *            ; size:   $14 (20)
  230.                         ENDR
  231.  
  232. ; typedef struct DMDepthInfoRec  DMDepthInfoRec
  233. ; typedef DMDepthInfoRec     *DMDepthInfoPtr
  234. DMDepthInfoBlockRec     RECORD    0
  235. depthBlockCount             ds.l   1        ; offset: $0 (0)        ; How many depths are there? 
  236. depthVPBlock             ds.l   1        ; offset: $4 (4)        ; Array of DMDepthInfoRec 
  237. depthBlockFlags             ds.l   1        ; offset: $8 (8)        ; Reserved 
  238. depthBlockReserved1         ds.l   1        ; offset: $C (12)        ; Reserved 
  239. depthBlockReserved2         ds.l   1        ; offset: $10 (16)        ; Reserved 
  240. sizeof                     EQU *            ; size:   $14 (20)
  241.                         ENDR
  242.  
  243. ; typedef struct DMDepthInfoBlockRec  DMDepthInfoBlockRec
  244. ; typedef DMDepthInfoBlockRec  *DMDepthInfoBlockPtr
  245. DMDisplayModeListEntryRec RECORD    0
  246. displayModeFlags         ds.l   1        ; offset: $0 (0)
  247. displayModeSwitchInfo     ds.l   1        ; offset: $4 (4)
  248. displayModeResolutionInfo ds.l   1        ; offset: $8 (8)
  249. displayModeTimingInfo     ds.l   1        ; offset: $C (12)
  250. displayModeDepthBlockInfo ds.l   1        ; offset: $10 (16)        ; Information about all the depths
  251. displayModeReserved1     ds.l   1        ; offset: $14 (20)        ; Reserved
  252. displayModeName             ds.l   1        ; offset: $18 (24)        ; Name of the timing mode
  253. sizeof                     EQU *            ; size:   $1C (28)
  254.                         ENDR
  255.  
  256. ; typedef struct DMDisplayModeListEntryRec  DMDisplayModeListEntryRec
  257. ; typedef DMDisplayModeListEntryRec  *DMDisplayModeListEntryPtr
  258. DependentNotifyRec         RECORD    0
  259. notifyType                 ds.l   1        ; offset: $0 (0)        ; What type was the engine that made the change (may be zero)
  260. notifyClass                 ds.l   1        ; offset: $4 (4)        ; What class was the change (eg geometry, color etc)
  261. notifyPortID             ds.l   1        ; offset: $8 (8)        ; Which device was touched (kInvalidDisplayID -> all or none)
  262. notifyComponent             ds.l   1        ; offset: $C (12)        ; What engine did it (may be 0)?
  263. notifyVersion             ds.l   1        ; offset: $10 (16)        ; Set to 0 (future expansion)
  264. notifyFlags                 ds.l   1        ; offset: $14 (20)        ; Set to 0 (future expansion)
  265. notifyReserved             ds.l   1        ; offset: $18 (24)        ; Set to 0 (future expansion)
  266. notifyFuture             ds.l   1        ; offset: $1C (28)        ; Set to 0 (future expansion)
  267. sizeof                     EQU *            ; size:   $20 (32)
  268.                         ENDR
  269.  
  270. ; typedef struct DependentNotifyRec  DependentNotifyRec
  271. ; typedef DependentNotifyRec  *DependentNotifyPtr
  272. ; Exports to support Interfaces library containing unused calls 
  273. ;
  274. ; pascal GDHandle DMGetFirstScreenDevice(Boolean activeOnly)
  275. ;
  276.     IF ¬ GENERATINGCFM THEN
  277.         Macro
  278.         _DMGetFirstScreenDevice
  279.             moveq    #0,d0
  280.             dc.w     $ABEB
  281.         EndM
  282.     ELSE
  283.         IMPORT_CFM_FUNCTION    DMGetFirstScreenDevice
  284.     ENDIF
  285.  
  286. ;
  287. ; pascal GDHandle DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly)
  288. ;
  289.     IF ¬ GENERATINGCFM THEN
  290.         Macro
  291.         _DMGetNextScreenDevice
  292.             moveq    #1,d0
  293.             dc.w     $ABEB
  294.         EndM
  295.     ELSE
  296.         IMPORT_CFM_FUNCTION    DMGetNextScreenDevice
  297.     ENDIF
  298.  
  299. ;
  300. ; pascal void DMDrawDesktopRect(Rect *globalRect)
  301. ;
  302.     IF ¬ GENERATINGCFM THEN
  303.         Macro
  304.         _DMDrawDesktopRect
  305.             moveq    #2,d0
  306.             dc.w     $ABEB
  307.         EndM
  308.     ELSE
  309.         IMPORT_CFM_FUNCTION    DMDrawDesktopRect
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal void DMDrawDesktopRegion(RgnHandle globalRgn)
  314. ;
  315.     IF ¬ GENERATINGCFM THEN
  316.         Macro
  317.         _DMDrawDesktopRegion
  318.             moveq    #3,d0
  319.             dc.w     $ABEB
  320.         EndM
  321.     ELSE
  322.         IMPORT_CFM_FUNCTION    DMDrawDesktopRegion
  323.     ENDIF
  324.  
  325. ;
  326. ; pascal OSErr DMBeginConfigureDisplays(Handle *displayState)
  327. ;
  328.     IF ¬ GENERATINGCFM THEN
  329.         Macro
  330.         _DMBeginConfigureDisplays
  331.             move.w    #$0206,d0
  332.             dc.w     $ABEB
  333.         EndM
  334.     ELSE
  335.         IMPORT_CFM_FUNCTION    DMBeginConfigureDisplays
  336.     ENDIF
  337.  
  338. ;
  339. ; pascal OSErr DMEndConfigureDisplays(Handle displayState)
  340. ;
  341.     IF ¬ GENERATINGCFM THEN
  342.         Macro
  343.         _DMEndConfigureDisplays
  344.             move.w    #$0207,d0
  345.             dc.w     $ABEB
  346.         EndM
  347.     ELSE
  348.         IMPORT_CFM_FUNCTION    DMEndConfigureDisplays
  349.     ENDIF
  350.  
  351. ;
  352. ; pascal OSErr DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode, unsigned long reserved, unsigned long displayID, Component displayComponent, Handle displayState)
  353. ;
  354.     IF ¬ GENERATINGCFM THEN
  355.         Macro
  356.         _DMAddDisplay
  357.             move.w    #$0D08,d0
  358.             dc.w     $ABEB
  359.         EndM
  360.     ELSE
  361.         IMPORT_CFM_FUNCTION    DMAddDisplay
  362.     ENDIF
  363.  
  364. ;
  365. ; pascal OSErr DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState)
  366. ;
  367.     IF ¬ GENERATINGCFM THEN
  368.         Macro
  369.         _DMMoveDisplay
  370.             move.w    #$0609,d0
  371.             dc.w     $ABEB
  372.         EndM
  373.     ELSE
  374.         IMPORT_CFM_FUNCTION    DMMoveDisplay
  375.     ENDIF
  376.  
  377. ;
  378. ; pascal OSErr DMDisableDisplay(GDHandle disableDevice, Handle displayState)
  379. ;
  380.     IF ¬ GENERATINGCFM THEN
  381.         Macro
  382.         _DMDisableDisplay
  383.             move.w    #$040A,d0
  384.             dc.w     $ABEB
  385.         EndM
  386.     ELSE
  387.         IMPORT_CFM_FUNCTION    DMDisableDisplay
  388.     ENDIF
  389.  
  390. ;
  391. ; pascal OSErr DMEnableDisplay(GDHandle enableDevice, Handle displayState)
  392. ;
  393.     IF ¬ GENERATINGCFM THEN
  394.         Macro
  395.         _DMEnableDisplay
  396.             move.w    #$040B,d0
  397.             dc.w     $ABEB
  398.         EndM
  399.     ELSE
  400.         IMPORT_CFM_FUNCTION    DMEnableDisplay
  401.     ENDIF
  402.  
  403. ;
  404. ; pascal OSErr DMRemoveDisplay(GDHandle removeDevice, Handle displayState)
  405. ;
  406.     IF ¬ GENERATINGCFM THEN
  407.         Macro
  408.         _DMRemoveDisplay
  409.             move.w    #$040C,d0
  410.             dc.w     $ABEB
  411.         EndM
  412.     ELSE
  413.         IMPORT_CFM_FUNCTION    DMRemoveDisplay
  414.     ENDIF
  415.  
  416. ;
  417. ; pascal OSErr DMSetMainDisplay(GDHandle newMainDevice, Handle displayState)
  418. ;
  419.     IF ¬ GENERATINGCFM THEN
  420.         Macro
  421.         _DMSetMainDisplay
  422.             move.w    #$0410,d0
  423.             dc.w     $ABEB
  424.         EndM
  425.     ELSE
  426.         IMPORT_CFM_FUNCTION    DMSetMainDisplay
  427.     ENDIF
  428.  
  429. ;
  430. ; pascal OSErr DMSetDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long *depthMode, unsigned long reserved, Handle displayState)
  431. ;
  432.     IF ¬ GENERATINGCFM THEN
  433.         Macro
  434.         _DMSetDisplayMode
  435.             move.w    #$0A11,d0
  436.             dc.w     $ABEB
  437.         EndM
  438.     ELSE
  439.         IMPORT_CFM_FUNCTION    DMSetDisplayMode
  440.     ENDIF
  441.  
  442. ;
  443. ; pascal OSErr DMCheckDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long depthMode, unsigned long *switchFlags, unsigned long reserved, Boolean *modeOk)
  444. ;
  445.     IF ¬ GENERATINGCFM THEN
  446.         Macro
  447.         _DMCheckDisplayMode
  448.             move.w    #$0C12,d0
  449.             dc.w     $ABEB
  450.         EndM
  451.     ELSE
  452.         IMPORT_CFM_FUNCTION    DMCheckDisplayMode
  453.     ENDIF
  454.  
  455. ;
  456. ; pascal OSErr DMGetDeskRegion(RgnHandle *desktopRegion)
  457. ;
  458.     IF ¬ GENERATINGCFM THEN
  459.         Macro
  460.         _DMGetDeskRegion
  461.             move.w    #$0213,d0
  462.             dc.w     $ABEB
  463.         EndM
  464.     ELSE
  465.         IMPORT_CFM_FUNCTION    DMGetDeskRegion
  466.     ENDIF
  467.  
  468. ;
  469. ; pascal OSErr DMRegisterNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  470. ;
  471.     IF ¬ GENERATINGCFM THEN
  472.         Macro
  473.         _DMRegisterNotifyProc
  474.             move.w    #$0414,d0
  475.             dc.w     $ABEB
  476.         EndM
  477.     ELSE
  478.         IMPORT_CFM_FUNCTION    DMRegisterNotifyProc
  479.     ENDIF
  480.  
  481. ;
  482. ; pascal OSErr DMRemoveNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  483. ;
  484.     IF ¬ GENERATINGCFM THEN
  485.         Macro
  486.         _DMRemoveNotifyProc
  487.             move.w    #$0415,d0
  488.             dc.w     $ABEB
  489.         EndM
  490.     ELSE
  491.         IMPORT_CFM_FUNCTION    DMRemoveNotifyProc
  492.     ENDIF
  493.  
  494. ;
  495. ; pascal OSErr DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable)
  496. ;
  497.     IF ¬ GENERATINGCFM THEN
  498.         Macro
  499.         _DMQDIsMirroringCapable
  500.             move.w    #$0216,d0
  501.             dc.w     $ABEB
  502.         EndM
  503.     ELSE
  504.         IMPORT_CFM_FUNCTION    DMQDIsMirroringCapable
  505.     ENDIF
  506.  
  507. ;
  508. ; pascal OSErr DMCanMirrorNow(Boolean *canMirrorNow)
  509. ;
  510.     IF ¬ GENERATINGCFM THEN
  511.         Macro
  512.         _DMCanMirrorNow
  513.             move.w    #$0217,d0
  514.             dc.w     $ABEB
  515.         EndM
  516.     ELSE
  517.         IMPORT_CFM_FUNCTION    DMCanMirrorNow
  518.     ENDIF
  519.  
  520. ;
  521. ; pascal OSErr DMIsMirroringOn(Boolean *isMirroringOn)
  522. ;
  523.     IF ¬ GENERATINGCFM THEN
  524.         Macro
  525.         _DMIsMirroringOn
  526.             move.w    #$0218,d0
  527.             dc.w     $ABEB
  528.         EndM
  529.     ELSE
  530.         IMPORT_CFM_FUNCTION    DMIsMirroringOn
  531.     ENDIF
  532.  
  533. ;
  534. ; pascal OSErr DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState)
  535. ;
  536.     IF ¬ GENERATINGCFM THEN
  537.         Macro
  538.         _DMMirrorDevices
  539.             move.w    #$0619,d0
  540.             dc.w     $ABEB
  541.         EndM
  542.     ELSE
  543.         IMPORT_CFM_FUNCTION    DMMirrorDevices
  544.     ENDIF
  545.  
  546. ;
  547. ; pascal OSErr DMUnmirrorDevice(GDHandle gDevice, Handle displayState)
  548. ;
  549.     IF ¬ GENERATINGCFM THEN
  550.         Macro
  551.         _DMUnmirrorDevice
  552.             move.w    #$041A,d0
  553.             dc.w     $ABEB
  554.         EndM
  555.     ELSE
  556.         IMPORT_CFM_FUNCTION    DMUnmirrorDevice
  557.     ENDIF
  558.  
  559. ;
  560. ; pascal OSErr DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice)
  561. ;
  562.     IF ¬ GENERATINGCFM THEN
  563.         Macro
  564.         _DMGetNextMirroredDevice
  565.             move.w    #$041B,d0
  566.             dc.w     $ABEB
  567.         EndM
  568.     ELSE
  569.         IMPORT_CFM_FUNCTION    DMGetNextMirroredDevice
  570.     ENDIF
  571.  
  572. ;
  573. ; pascal OSErr DMBlockMirroring(void)
  574. ;
  575.     IF ¬ GENERATINGCFM THEN
  576.         Macro
  577.         _DMBlockMirroring
  578.             moveq    #28,d0
  579.             dc.w     $ABEB
  580.         EndM
  581.     ELSE
  582.         IMPORT_CFM_FUNCTION    DMBlockMirroring
  583.     ENDIF
  584.  
  585. ;
  586. ; pascal OSErr DMUnblockMirroring(void)
  587. ;
  588.     IF ¬ GENERATINGCFM THEN
  589.         Macro
  590.         _DMUnblockMirroring
  591.             moveq    #29,d0
  592.             dc.w     $ABEB
  593.         EndM
  594.     ELSE
  595.         IMPORT_CFM_FUNCTION    DMUnblockMirroring
  596.     ENDIF
  597.  
  598. ;
  599. ; pascal OSErr DMGetDisplayMgrA5World(Ptr *dmA5)
  600. ;
  601.     IF ¬ GENERATINGCFM THEN
  602.         Macro
  603.         _DMGetDisplayMgrA5World
  604.             move.w    #$021E,d0
  605.             dc.w     $ABEB
  606.         EndM
  607.     ELSE
  608.         IMPORT_CFM_FUNCTION    DMGetDisplayMgrA5World
  609.     ENDIF
  610.  
  611. ;
  612. ; pascal OSErr DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID, Boolean failToMain)
  613. ;
  614.     IF ¬ GENERATINGCFM THEN
  615.         Macro
  616.         _DMGetDisplayIDByGDevice
  617.             move.w    #$051F,d0
  618.             dc.w     $ABEB
  619.         EndM
  620.     ELSE
  621.         IMPORT_CFM_FUNCTION    DMGetDisplayIDByGDevice
  622.     ENDIF
  623.  
  624. ;
  625. ; pascal OSErr DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice, Boolean failToMain)
  626. ;
  627.     IF ¬ GENERATINGCFM THEN
  628.         Macro
  629.         _DMGetGDeviceByDisplayID
  630.             move.w    #$0520,d0
  631.             dc.w     $ABEB
  632.         EndM
  633.     ELSE
  634.         IMPORT_CFM_FUNCTION    DMGetGDeviceByDisplayID
  635.     ENDIF
  636.  
  637. ;
  638. ; pascal OSErr DMSetDisplayComponent(GDHandle theDevice, Component displayComponent)
  639. ;
  640.     IF ¬ GENERATINGCFM THEN
  641.         Macro
  642.         _DMSetDisplayComponent
  643.             move.w    #$0421,d0
  644.             dc.w     $ABEB
  645.         EndM
  646.     ELSE
  647.         IMPORT_CFM_FUNCTION    DMSetDisplayComponent
  648.     ENDIF
  649.  
  650. ;
  651. ; pascal OSErr DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent)
  652. ;
  653.     IF ¬ GENERATINGCFM THEN
  654.         Macro
  655.         _DMGetDisplayComponent
  656.             move.w    #$0422,d0
  657.             dc.w     $ABEB
  658.         EndM
  659.     ELSE
  660.         IMPORT_CFM_FUNCTION    DMGetDisplayComponent
  661.     ENDIF
  662.  
  663. ;
  664. ; pascal OSErr DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode, unsigned long reserved, DisplayIDType displayID, Component displayComponent, Handle displayState)
  665. ;
  666.     IF ¬ GENERATINGCFM THEN
  667.         Macro
  668.         _DMNewDisplay
  669.             move.w    #$0D23,d0
  670.             dc.w     $ABEB
  671.         EndM
  672.     ELSE
  673.         IMPORT_CFM_FUNCTION    DMNewDisplay
  674.     ENDIF
  675.  
  676. ;
  677. ; pascal OSErr DMDisposeDisplay(GDHandle disposeDevice, Handle displayState)
  678. ;
  679.     IF ¬ GENERATINGCFM THEN
  680.         Macro
  681.         _DMDisposeDisplay
  682.             move.w    #$0424,d0
  683.             dc.w     $ABEB
  684.         EndM
  685.     ELSE
  686.         IMPORT_CFM_FUNCTION    DMDisposeDisplay
  687.     ENDIF
  688.  
  689. ;
  690. ; pascal OSErr DMResolveDisplayComponents(void)
  691. ;
  692.     IF ¬ GENERATINGCFM THEN
  693.         Macro
  694.         _DMResolveDisplayComponents
  695.             moveq    #37,d0
  696.             dc.w     $ABEB
  697.         EndM
  698.     ELSE
  699.         IMPORT_CFM_FUNCTION    DMResolveDisplayComponents
  700.     ENDIF
  701.  
  702. ;
  703. ; pascal OSErr DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, unsigned short nofifyOnFlags, ProcessSerialNumberPtr whichPSN)
  704. ;
  705.     IF ¬ GENERATINGCFM THEN
  706.         Macro
  707.         _DMRegisterExtendedNotifyProc
  708.             move.w    #$07EF,d0
  709.             dc.w     $ABEB
  710.         EndM
  711.     ELSE
  712.         IMPORT_CFM_FUNCTION    DMRegisterExtendedNotifyProc
  713.     ENDIF
  714.  
  715. ;
  716. ; pascal OSErr DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, ProcessSerialNumberPtr whichPSN, unsigned short removeFlags)
  717. ;
  718.     IF ¬ GENERATINGCFM THEN
  719.         Macro
  720.         _DMRemoveExtendedNotifyProc
  721.             move.w    #$0726,d0
  722.             dc.w     $ABEB
  723.         EndM
  724.     ELSE
  725.         IMPORT_CFM_FUNCTION    DMRemoveExtendedNotifyProc
  726.     ENDIF
  727.  
  728. ;
  729. ; pascal OSErr DMNewAVPanelList(DisplayIDType displayID, ResType panelType, DMFidelityType minimumFidelity, unsigned long panelListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  730. ;
  731.     IF ¬ GENERATINGCFM THEN
  732.         Macro
  733.         _DMNewAVPanelList
  734.             move.w    #$0C27,d0
  735.             dc.w     $ABEB
  736.         EndM
  737.     ELSE
  738.         IMPORT_CFM_FUNCTION    DMNewAVPanelList
  739.     ENDIF
  740.  
  741. ;
  742. ; pascal OSErr DMNewAVEngineList(DisplayIDType displayID, ResType engineType, DMFidelityType minimumFidelity, unsigned long engineListFlags, unsigned long reserved, DMListIndexType *engineCount, DMListType *engineList)
  743. ;
  744.     IF ¬ GENERATINGCFM THEN
  745.         Macro
  746.         _DMNewAVEngineList
  747.             move.w    #$0C28,d0
  748.             dc.w     $ABEB
  749.         EndM
  750.     ELSE
  751.         IMPORT_CFM_FUNCTION    DMNewAVEngineList
  752.     ENDIF
  753.  
  754. ;
  755. ; pascal OSErr DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags, unsigned long reserved, DMListIndexType *deviceCount, DMListType *deviceList)
  756. ;
  757.     IF ¬ GENERATINGCFM THEN
  758.         Macro
  759.         _DMNewAVDeviceList
  760.             move.w    #$0A29,d0
  761.             dc.w     $ABEB
  762.         EndM
  763.     ELSE
  764.         IMPORT_CFM_FUNCTION    DMNewAVDeviceList
  765.     ENDIF
  766.  
  767. ;
  768. ; pascal OSErr DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  769. ;
  770.     IF ¬ GENERATINGCFM THEN
  771.         Macro
  772.         _DMNewAVPortListByPortType
  773.             move.w    #$0A2A,d0
  774.             dc.w     $ABEB
  775.         EndM
  776.     ELSE
  777.         IMPORT_CFM_FUNCTION    DMNewAVPortListByPortType
  778.     ENDIF
  779.  
  780. ;
  781. ; pascal OSErr DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMComponentListIteratorUPP listIterator, void *userData)
  782. ;
  783.     IF ¬ GENERATINGCFM THEN
  784.         Macro
  785.         _DMGetIndexedComponentFromList
  786.             move.w    #$0A2B,d0
  787.             dc.w     $ABEB
  788.         EndM
  789.     ELSE
  790.         IMPORT_CFM_FUNCTION    DMGetIndexedComponentFromList
  791.     ENDIF
  792.  
  793. ;
  794. ; pascal OSErr DMDisposeList(DMListType panelList)
  795. ;
  796.     IF ¬ GENERATINGCFM THEN
  797.         Macro
  798.         _DMDisposeList
  799.             move.w    #$022C,d0
  800.             dc.w     $ABEB
  801.         EndM
  802.     ELSE
  803.         IMPORT_CFM_FUNCTION    DMDisposeList
  804.     ENDIF
  805.  
  806. ;
  807. ; pascal OSErr DMGetNameByAVID(AVIDType theID, unsigned long nameFlags, Str255 *name)
  808. ;
  809.     IF ¬ GENERATINGCFM THEN
  810.         Macro
  811.         _DMGetNameByAVID
  812.             move.w    #$062D,d0
  813.             dc.w     $ABEB
  814.         EndM
  815.     ELSE
  816.         IMPORT_CFM_FUNCTION    DMGetNameByAVID
  817.     ENDIF
  818.  
  819. ;
  820. ; pascal OSErr DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind, unsigned long reserved, AVIDType *newID)
  821. ;
  822.     IF ¬ GENERATINGCFM THEN
  823.         Macro
  824.         _DMNewAVIDByPortComponent
  825.             move.w    #$082E,d0
  826.             dc.w     $ABEB
  827.         EndM
  828.     ELSE
  829.         IMPORT_CFM_FUNCTION    DMNewAVIDByPortComponent
  830.     ENDIF
  831.  
  832. ;
  833. ; pascal OSErr DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent, ComponentDescription *theDesciption, ResType *thePortKind)
  834. ;
  835.     IF ¬ GENERATINGCFM THEN
  836.         Macro
  837.         _DMGetPortComponentByAVID
  838.             move.w    #$082F,d0
  839.             dc.w     $ABEB
  840.         EndM
  841.     ELSE
  842.         IMPORT_CFM_FUNCTION    DMGetPortComponentByAVID
  843.     ENDIF
  844.  
  845. ;
  846. ; pascal OSErr DMSendDependentNotification(ResType notifyType, ResType notifyClass, AVIDType displayID, ComponentInstance notifyComponent)
  847. ;
  848.     IF ¬ GENERATINGCFM THEN
  849.         Macro
  850.         _DMSendDependentNotification
  851.             move.w    #$0830,d0
  852.             dc.w     $ABEB
  853.         EndM
  854.     ELSE
  855.         IMPORT_CFM_FUNCTION    DMSendDependentNotification
  856.     ENDIF
  857.  
  858. ;
  859. ; pascal OSErr DMDisposeAVComponent(Component theAVComponent)
  860. ;
  861.     IF ¬ GENERATINGCFM THEN
  862.         Macro
  863.         _DMDisposeAVComponent
  864.             move.w    #$0231,d0
  865.             dc.w     $ABEB
  866.         EndM
  867.     ELSE
  868.         IMPORT_CFM_FUNCTION    DMDisposeAVComponent
  869.     ENDIF
  870.  
  871. ;
  872. ; pascal OSErr DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags, unsigned long reserved2)
  873. ;
  874.     IF ¬ GENERATINGCFM THEN
  875.         Macro
  876.         _DMSaveScreenPrefs
  877.             move.w    #$0632,d0
  878.             dc.w     $ABEB
  879.         EndM
  880.     ELSE
  881.         IMPORT_CFM_FUNCTION    DMSaveScreenPrefs
  882.     ENDIF
  883.  
  884. ;
  885. ; pascal OSErr DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind, unsigned long reserved, DisplayIDType *newID)
  886. ;
  887.     IF ¬ GENERATINGCFM THEN
  888.         Macro
  889.         _DMNewAVIDByDeviceComponent
  890.             move.w    #$0833,d0
  891.             dc.w     $ABEB
  892.         EndM
  893.     ELSE
  894.         IMPORT_CFM_FUNCTION    DMNewAVIDByDeviceComponent
  895.     ENDIF
  896.  
  897. ;
  898. ; pascal OSErr DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  899. ;
  900.     IF ¬ GENERATINGCFM THEN
  901.         Macro
  902.         _DMNewAVPortListByDeviceAVID
  903.             move.w    #$0C34,d0
  904.             dc.w     $ABEB
  905.         EndM
  906.     ELSE
  907.         IMPORT_CFM_FUNCTION    DMNewAVPortListByDeviceAVID
  908.     ENDIF
  909.  
  910. ;
  911. ; pascal OSErr DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent, ComponentDescription *theDesciption, ResType *theDeviceKind)
  912. ;
  913.     IF ¬ GENERATINGCFM THEN
  914.         Macro
  915.         _DMGetDeviceComponentByAVID
  916.             move.w    #$0835,d0
  917.             dc.w     $ABEB
  918.         EndM
  919.     ELSE
  920.         IMPORT_CFM_FUNCTION    DMGetDeviceComponentByAVID
  921.     ENDIF
  922.  
  923. ;
  924. ; pascal OSErr DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  925. ;
  926.     IF ¬ GENERATINGCFM THEN
  927.         Macro
  928.         _DMNewDisplayModeList
  929.             move.w    #$0A36,d0
  930.             dc.w     $ABEB
  931.         EndM
  932.     ELSE
  933.         IMPORT_CFM_FUNCTION    DMNewDisplayModeList
  934.     ENDIF
  935.  
  936. ;
  937. ; pascal OSErr DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMDisplayModeListIteratorUPP listIterator, void *userData)
  938. ;
  939.     IF ¬ GENERATINGCFM THEN
  940.         Macro
  941.         _DMGetIndexedDisplayModeFromList
  942.             move.w    #$0A37,d0
  943.             dc.w     $ABEB
  944.         EndM
  945.     ELSE
  946.         IMPORT_CFM_FUNCTION    DMGetIndexedDisplayModeFromList
  947.     ENDIF
  948.  
  949. ;
  950. ; pascal OSErr DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit, Handle *theAVIconSuite, AVLocationRec *theAVLocation)
  951. ;
  952.     IF ¬ GENERATINGCFM THEN
  953.         Macro
  954.         _DMGetGraphicInfoByAVID
  955.             move.w    #$0838,d0
  956.             dc.w     $ABEB
  957.         EndM
  958.     ELSE
  959.         IMPORT_CFM_FUNCTION    DMGetGraphicInfoByAVID
  960.     ENDIF
  961.  
  962. ;
  963. ; pascal OSErr DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState, unsigned long reserved1)
  964. ;
  965.     IF ¬ GENERATINGCFM THEN
  966.         Macro
  967.         _DMGetAVPowerState
  968.             move.w    #$0839,d0
  969.             dc.w     $ABEB
  970.         EndM
  971.     ELSE
  972.         IMPORT_CFM_FUNCTION    DMGetAVPowerState
  973.     ENDIF
  974.  
  975. ;
  976. ; pascal OSErr DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState, unsigned long powerFlags, Handle displayState)
  977. ;
  978.     IF ¬ GENERATINGCFM THEN
  979.         Macro
  980.         _DMSetAVPowerState
  981.             move.w    #$083A,d0
  982.             dc.w     $ABEB
  983.         EndM
  984.     ELSE
  985.         IMPORT_CFM_FUNCTION    DMSetAVPowerState
  986.     ENDIF
  987.  
  988. ;
  989. ; pascal OSErr DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID)
  990. ;
  991.     IF ¬ GENERATINGCFM THEN
  992.         Macro
  993.         _DMGetDeviceAVIDByPortAVID
  994.             move.w    #$043B,d0
  995.             dc.w     $ABEB
  996.         EndM
  997.     ELSE
  998.         IMPORT_CFM_FUNCTION    DMGetDeviceAVIDByPortAVID
  999.     ENDIF
  1000.  
  1001. ;
  1002. ; pascal OSErr DMGetEnableByAVID(AVIDType theAVID, Boolean *isAVIDEnabledNow, Boolean *canChangeEnableNow)
  1003. ;
  1004.     IF ¬ GENERATINGCFM THEN
  1005.         Macro
  1006.         _DMGetEnableByAVID
  1007.             move.w    #$063C,d0
  1008.             dc.w     $ABEB
  1009.         EndM
  1010.     ELSE
  1011.         IMPORT_CFM_FUNCTION    DMGetEnableByAVID
  1012.     ENDIF
  1013.  
  1014. ;
  1015. ; pascal OSErr DMSetEnableByAVID(AVIDType theAVID, Boolean doEnable, Handle displayState)
  1016. ;
  1017.     IF ¬ GENERATINGCFM THEN
  1018.         Macro
  1019.         _DMSetEnableByAVID
  1020.             move.w    #$053D,d0
  1021.             dc.w     $ABEB
  1022.         EndM
  1023.     ELSE
  1024.         IMPORT_CFM_FUNCTION    DMSetEnableByAVID
  1025.     ENDIF
  1026.  
  1027. ;
  1028. ; pascal OSErr DMGetDisplayMode(GDHandle theDevice, VDSwitchInfoPtr switchInfo)
  1029. ;
  1030.     IF ¬ GENERATINGCFM THEN
  1031.         Macro
  1032.         _DMGetDisplayMode
  1033.             move.w    #$043E,d0
  1034.             dc.w     $ABEB
  1035.         EndM
  1036.     ELSE
  1037.         IMPORT_CFM_FUNCTION    DMGetDisplayMode
  1038.     ENDIF
  1039.  
  1040.     ENDIF ; __DISPLAYS__
  1041.